/**
 * Created by kangdaye on 16/6/13.
 */
app.service('goodsListService',['$http',function($http) {
    this.shelves = function (postData,callback) {
        $http.post(servicePath + 'goods/shelves',postData).success(callback);
    };

    this.delete = function (postData,callback) {
        $http.post(servicePath + 'goods/delete',postData).success(callback);
    };

    this.freightList = function (callback) {
        $http.get(servicePath + 'freight/list').success(callback);
    };

    this.add = function (postData,callback) {
        $http.post(servicePath + 'goods/add',postData).success(callback);
    };

    this.update = function (postData,callback) {
        $http.post(servicePath + 'goods/update',postData).success(callback);
    };

    this.details = function (postData,callback) {
        $http.post(servicePath + 'goods/details',postData).success(callback);
    };
}]);
